<extend name="Public/base" />

<block name="style">
<style>
	.page-content{padding:15px 10px;}
	.search_pannl_div .single-col label{width:75px;}
</style>
</block>

<block name="body">
	<!-- 弹窗插件 -->
    <include file="Public:artdialog" />


     <div class="row">
        <div class="col-md-12">
            <div class="block-web">
				<!-- 商品列表 -->
				<form action="{:U('purchaseList')}" method="post" onsubmit="return false" id="SearchFrom">
				        <div class="bgmain">
				        	<div class="header">
				        	     <div class="actions_diy">
                                <a href="javascript:;"onclick="_es_openDilogLarge('{:U('add_purchase')}','添加采购单')" class="btn btn-default btn-primary">
                                    <i class="fa fa-plus"></i>添加采购名称
                                </a>
                            </div>
			                    <h3 class="content-header">采购单查看</h3>
			                </div>
				        
		                    <div class="block-web" style="margin: 0;padding:10px 20px 0px 0px;">
		                        <div class="porlets-content">
		                            <div class="row" style="margin-left:-45px;">
		                                <div class="col-md-12">
		                                    <div class="search_pannl_div">
		                                        <table class="search_table">
		                                            <tbody>
		                                                <tr>
		                                              <td class="single-col">
															        时间(开始)
															        <input name="start_time" readonly="readonly" class="laydate-icon" style="width: 160px;padding: 0px;height: 20px;" type="text" id="start_time" size="15">
															        &nbsp;&nbsp;
															        时间(结束)
															        <input name="end_time" readonly="readonly" class="laydate-icon" style="width: 160px;padding: 0px;height: 20px;" type="text" id="end_time" size="15">
		                                                    
		                                                        <label>关键词：</label><input style="width:120px;" type="text" id="keywords" name="keywords" placeholder="输入包裹名" value="">
		                                                        <button type="button" class="btn btn-success" formtarget="SearchFrom" id="searchBtn" onclick="goSearch('#searchBtn','load_tb_div')"><i class="fa fa-search"></i> 搜索</button>
		                                                        <button type="button" class="btn btn-default" onclick="$('input[type=text]').val(['']);$('select').val('');goSearch('#searchBtn','load_tb_div');"> 查看所有</button>
		                                                    </td>
		                                                </tr>
		                                            </tbody>
		                                        </table>
		                                    </div>
		                                </div>
		                            </div>
		                        </div>
		                    </div>
			    	 </div>
			   
				<div id="load_tb_div" style="padding:10px 0px 30px ;">
				</div>

				<script>
				 	$(function () {
				        _load_html_byurl("{:U('purchaseList')}", "load_tb_div");
				    });
				</script>
              	</form>
            </div><!--/porlets-content-->
        </div><!--/block-web-->
    </div><!--/col-md-12-->
    
</block>

<block name="script">
<script type="text/javascript" src="/plugins/laydate/laydate.dev.js"></script>
<script>
	laydate({
	    elem: '#start_time',
	    festival: true, //显示节日
	    istime: true,
	    format: 'YYYY-MM-DD'
	});
	laydate({
	    elem: '#end_time',
	    festival: true, //显示节日
	    istime: true,
	    format: 'YYYY-MM-DD'
	});
/*$(function(){
   $("#add_special").bind("click",fnadd);
  
 });

 function   fnadd(){
    var url="{:U('add_special_offer')}";
    title="添加包裹";
    _es_openDilog(url, title, "1200px", "80%", true, 0.2, "load_tb_div");
 }
 */

</script>
</block>

